package com.itheima.String;

import java.util.Scanner;

public class Demo01Scanner {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        System.out.println("请输入字符串:");
        String s1 = sc.nextLine();
        System.out.println(s1);


        System.out.println("请输入字符串:");
        String s2 = sc.nextLine();
        System.out.println(s2);


        System.out.println("请输入字符串:");
        String s = sc.next();
        System.out.println("s = " + s);

    }
}
